<!-- Begin one column window -->
<style>
    .content-left {
        float: left;
        margin-left: 50px;

    }
    .content-right {
        float: right;
        margin-right: 100px;
    }
    .content-right span, .content-left span {
        font-weight: bold;
        width: 200px;
        float: left;
        display: block;
    }
    .content-right p, .content-left p{
        font-size: 17px;
    }
</style>
<div class="onecolumn">
    <div class="header">
        <span style="font-weight: bold; text-align: center; color: red;">Thông tin chi tiết bạn đọc</span>
    </div>
    <br class="clear"/>
    <?php if (isset($infoReader) && $infoReader != null): ?>
        <div class="content" style="height: 500px;">
            <?php if (isset($infoReader['profilePhoto']) && $infoReader['profilePhoto'] != null): ?>
                <img src="<?php echo $this->basePath() . $infoReader['profilePhoto'] ?>" style="float: left;width: 140px; height: 170px;margin: 20px 0px 0px 100px;"><br/>
            <?php else: ?>
                <img src="#" style="float: left;width: 140px; height: 170px;margin: 20px 0px 0px 100px;"><br/>
            <?php endif; ?>
            <div class="content-left">
                <p><span>Mã thẻ:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['cardBarcode']); ?></p>
                <p><span>Họ tên:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['fullName']); ?></p>
                <p><span>Ngày sinh:&nbsp;&nbsp;</span>
                    <?php
                    $birthday = new DateTime($infoReader['birthday']);
                    echo $this->escapeHtml($birthday->format('d-m-Y'));
                    ?>
                </p> 
                <p><span>Giới tính:&nbsp;&nbsp;</span>
                    <?php
                    if ($infoReader['sex'] == 1)
                        echo $this->escapeHtml('Nam');
                    else
                        echo $this->escapeHtml('Nữ');
                    ?>
                </p> 
                <p><span>Đơn vị/Bộ phận:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['className'] . ' - ' . $infoReader['facultyName']); ?></p>
                <p><span>Ngày tạo:&nbsp;&nbsp;</span>
                    <?php
                    $dateCreated = new DateTime($infoReader['dateCreated']);
                    echo $this->escapeHtml($dateCreated->format('d-m-Y'));
                    ?>
                </p>
                <p><span>Ngày hết hạn:&nbsp;&nbsp;</span>
                    <?php
                    $dateExpiry = new DateTime($infoReader['dateExpiry']);
                    echo $this->escapeHtml($dateExpiry->format('d-m-Y'));
                    ?>
                </p>
                <p><span>Số tài liệu mượn:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['totalBorrow']); ?></p>
                <p><span>Email:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['email']); ?></p> 
                <p><span>Số ĐT:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['phoneNumber']); ?></p> 
                <p><span>Địa chỉ liên hệ:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['residentAddress']); ?></p> 
                <p><span>Quê quán:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['nativePlace']); ?></p>
                <p><span>Thông tin mô tả thêm:&nbsp;&nbsp;</span><?php echo $this->escapeHtml($infoReader['description']); ?></p>
            </div>
        </div>
    <?php endif; ?>
</div>
<!-- End one column window -->